Skip to main content

tool

Type​

function

Summary​

Returns the name of the currently chosen tool.

Syntax​

the tool
tool()

Description​

Use the tool function to find out which tool is currently selected.

The tool names are the same as the names used with the choose command to select a tool for use.

Examples​

the tool
if the tool is not "browse tool" then choose browse tool

Value​

NameTypeDescription

return

enum

The tool function returns one of the following tool names: browse, pointer, button, field, scrollbar, graphic, image, player, select, pencil, bucket, brush, eraser, spray can, rectangle, line, round rect, oval, polygon, curve, regular polygon, or dropper, followed by the word "tool"

command: choose

control structure: function

function: tool

glossary: command, return

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?